package com.pansoft.openplanet.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.core.xml.StubObject;
import com.efounder.chat.activity.BaseActivity;
import com.efounder.chat.event.RightTopMenuClickEvent;
import com.pansoft.openplanet.R;

import org.greenrobot.eventbus.EventBus;

/**
 * 空投activity
 * @author will
 */
public class AirDropActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_air_drop);
        initView();
    }

    private void initView() {
        TextView tvTitle = (TextView) findViewById(R.id.tv_title);
        tvTitle.setText(R.string.tab_menu_kongtou);
        final ImageView ivMore = (ImageView) findViewById(R.id.iv_detail);

        ivMore.setVisibility(View.VISIBLE);

        ivMore.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                StubObject stubObject = new StubObject();
                stubObject.setString("AndroidShow", "com.pansoft.openplanet.fragment.AirDropFragment");
                EventBus.getDefault().post(new RightTopMenuClickEvent(ivMore, stubObject));
            }
        });
    }
}
